import instance from '@/utils/request.js';

export const getCommentList = (id) => {
  return instance({
    url: `comment/getComment/${id}`,
    method: 'get',
  })
}

export const deleteComment = (id) => {
  return instance({
    url: `/comment/${id}`,
    method: 'delete',
  })
}

export const addComment = (data) => {
  return instance({
    url: `/comment`,
    method: 'post',
    data,
  })
}
